//
//  CalenderHeaderView.m
//  YZCCalender
//
//  Created by Jason on 2018/1/18.
//  Copyright © 2018年 jason. All rights reserved.
//

#import "CalenderHeaderView.h"

@interface CalenderHeaderView()

@property (nonatomic, strong) UIView *lineView;

@end

@implementation CalenderHeaderView

- (UILabel *)yearAndMonthLabel {
    if (_yearAndMonthLabel == nil) {
        _yearAndMonthLabel                 = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, MS_SCREEN_WIDTH, 25)];
        _yearAndMonthLabel.textAlignment   = NSTextAlignmentCenter;
        _yearAndMonthLabel.font            = [UIFont systemFontOfSize:14];
        _yearAndMonthLabel.textColor       = [UIColor colorWithHexString:@"#444444"];
        [self addSubview:_yearAndMonthLabel];
        
        [self addSubview:self.lineView];
    }
    return _yearAndMonthLabel;
}

- (UIView *)lineView {
    if (!_lineView) {
        _lineView = [[UIView alloc] initWithFrame:CGRectMake(0, 24.5, MS_SCREEN_WIDTH, 0.5)];
        _lineView.backgroundColor = rgba(0, 0, 0, 0.08);
    }
    return _lineView;
}

@end
